package yangcheng.student;

public class main {
    public static void main(String[] args) {
        StudentG student1 = new StudentG("aa","114514",false,61.7);
        StudentG student2 = new StudentG("ab","191981",true,80.5);
        StudentG student3 = new StudentG("ac","233333",false,86.3);

        StudentM student4 = new StudentM("ba","10001",true,6);
        StudentM student5 = new StudentM("bb","10002",false,8);
        StudentM student6 = new StudentM("bc","10003",false,4);

        Student[] A =new Student[]{student1,student2,student3};
        Student[] B =new Student[]{student4,student5,student6};
        for(Student x:A){
            if(x.isExcellent()){
                x.printInfo();
            }
            //System.out.println("是否优秀: "+x.isExcellent()+"\n");
        }
        for(Student x:B){
            if(x.isExcellent()){
                x.printInfo();
            }
            //System.out.println("是否优秀: "+x.isExcellent()+"\n");
        }
    }
}
